import { beanCopy,beanCopyArray } from './beanCopy'
class VO {
    public id: number;
    public name: string;
    public age: number;
}

const vo = new VO();
console.log(vo);
const entity = {
    id: 1,
    name: 'John',
    age: 5,
    gander: 'January',
    createdAt: new Date().toISOString(),
    updatedAt: new Date().toISOString(),
    isDeleted: false,
}

const entitys = [
    {
        id: 1,
        name: 'John',
        age: 5,
        gander: 'January',
        createdAt: new Date().toISOString(),
        updatedAt: new Date().toISOString(),
        isDeleted: false,
    },
    {
        id: 2,
        name: 'John2',
        age: 52,
        gander: 'January2',
        createdAt: new Date().toISOString(),
        updatedAt: new Date().toISOString(),
        isDeleted: true,
    },
]


// const r = beanCopy<VO>(vo, entity)
// const rs = beanCopyArray(vo, entitys)
// console.log(rs);